<%-- 
    Document   : index
    Created on : 20 mai 2011, 11:24:44
    Author     : Lot 4 ServEns
--%>

<%@page import="bdd.beans.Enseignant"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Formulaire de modification des informations personnelles de l'enseignant</title>
    </head>
    <body>
<%
    Enseignant ens=new Enseignant();
    ens=(Enseignant) request.getAttribute("enseignant");

%>
        <center><h1>Saisie des informations personnelles</h1>
        <form method="post" action="">
            <table>
                <tr>
                    <td align="right">Nom :</td><td><input type="text" name="nom" value="<%=ens.getNom()%>"/></td>
                </tr>
                <tr>
                    <td align="right">Prénom :</td><td><input type="text" name="prenom" value="<%=ens.getPrenom()%>"/></td>
                </tr>
                <tr>
                    <td align="right">Adresse :</td><td><input type="text" name="adresse" value="<%=ens.getAdresse()%>"/></td>
                </tr>
                <tr>
                    <td align="right">Téléphone :</td><td><input type="text" name="telephone" value="<%=ens.getTelephone()%>"/></td>
                </tr>
                <tr>
                    <td align="right">Date de naissance :</td><td><input type="text" name="jour" size="2" maxlength="2"/>
                        <input type="text" name="mois" size="2" maxlength="2"/>
                        <input type="text" name="annee" size="4" maxlength="4"/>
                    </td>
                </tr>
            </table>
            <br/>
            <b>Modification du mot de passe</b>
            <table>
                <tr>
                    <td align="right">Ancien mot de passe :</td><td><input type="password" name="password"/></td>
                <tr>
                    <td align="right">Nouveau mot de passe :</td><td><input type="password" name="new_password"/></td>
                </tr>
                <tr>
                    <td align="right">Confirmation mot de passe :</td><td><input type="password" name="confirm_password"/></td>
                </tr>
            </table>
            <input type="submit" name="Valider" value="Valider" />
        </form></center>
    </body>
</html>
